class cat:
    name = ""
    tili = 0

    def _init_(self, name, tili):
        self.name = name
        self.tili = tili

    def play(self):
        self.tili -= 10
        print("%s体力会减少" % self.name)
        self.status()

    def sleep(self):
        self.tili = 100
        print("%s在补充体力" % self.name)
        self.status()

    def status(self):
        print("%s现在的体力是%s" % (self.name, self.tili))


cat1 = cat()
cat1.name = "多多"
cat1.tili = 30
cat1.play()
cat1.sleep()
print('\n')
print("计科1814-39-易芳")
